package com.xz.knowledgeDuplication.pattern.observer;

/**
 * 微信用户(具体观察者)
 *
 * @author 召
 * @date 2022-03-27 17:59:16
 */
public class VxUser implements Observer{

    private String name;

    public VxUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(this.name + "-" + message);
    }

}
